# coding=utf-8
__author__ = 'liubin'

from tornado.web import RequestHandler


class HomeHandler(RequestHandler):
    """
    主页
    """
    def get(self):
        # 渲染指定页面
        self.render("index.html")


class LogoutHandler(RequestHandler):
    """
    登出
    """
    def get(self):
        # 清除cookie
        self.clear_cookie('user')
        # 渲染指定url
        self.redirect('/#/login')
